const SyncHook = require('./mySyncHook.js');

let hook = new SyncHook(['name', 'age']);

hook.tap('fn1', function (name, age) {
  console.log('fn1:', name, age)
})
hook.tap('fn2', function (name, age) {
  console.log('fn2:', name, age)
})

hook.call('abc1134', 12345)